[ Mega Script Archive ] [ Frequently Asked Questions ] [ HTTP Cookie Library ]

What are Cookies?

  • Short Answer:

    A Cookie (Short for Persistent Client State HTTP Cookie) is sent through the headers of server-client interactions. They contain whatever information is set by the server. From then on, this information is transferred by the client to the server whenever it accesses a directory in the path and domain it was set from until it expires.

    Long Answer:

    From Netscape's Persistent Client State HTTP Cookies:

    "Cookies are a general mechanism which server side connections (such as CGI scripts) can use to both store and retrieve information on the client side of the connection. The addition of a simple, persistent, client-side state significantly extends the capabilities of Web-based client/server applications."

    One thing that cookies cannot do is read from your hard drive, get your e-mail address or anything else that a normal CGI cannot do. Cookies can only contain as much information about you as you disclose on the site which sets the cookie.


[ Mega Script Archive ]